home *** CD-ROM | disk | FTP | other *** search
/ NeXT Enterprise Objects Framework 1.1 / NeXT Enterprise Objects Framework 1.1.iso / NextDeveloper / Examples / EnterpriseObjects / DistributedEO / DEOClient.subproj / DEOServerMonitor.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-02-17  |  871 b   |  28 lines

  1. /*
  2.    DEOServerMonitor.h created by enoyau on Fri 13-Jan-1995
  3.  
  4.    You may freely copy, distribute, and reuse the code in this example.
  5.    NeXT disclaims any warranty of any kind, expressed or implied, as to its
  6.    fitness for any particular use.
  7. */
  8. // DEOServerMonitor is responsible for watching the communication between the
  9. // server and all DEONotificationCenters in the client. In our example, there
  10. // is only one DEONotificationCenter. If the connection between client and
  11. // server becomes invalid, it broadcasts a NSNotification to inform the death
  12. // of the server.
  13.  
  14. #import "DEOProtocols.h"
  15. #import <machkit/senderIsInvalid.h>
  16. #import <foundation/NSString.h>
  17.  
  18. extern NSString *DEOServerReinitialize;
  19.  
  20. @interface DEOServerMonitor : NSObject <NXSenderIsInvalid>
  21. {
  22.     id <DEOServer> server;
  23. }
  24.  
  25. + (DEOServerMonitor *)serverMonitor;
  26. - (id <DEOServer>)server;
  27. @end
  28.